<ion-header>
    <ion-toolbar content-page>
        <ion-buttons start>
            <button ion-button icon-only navPop>
                <i class="back"></i>
            </button>
        </ion-buttons>
        <ion-title>
           {{classify === 0 ? ' 客户参与详情' : '增员对象详情'}}
        </ion-title>
        <ion-buttons end>
            <ion-buttons>
                <button ion-button icon-only adpmenutoggle>
                    <i class="menu"></i>
                </button>
            </ion-buttons>
        </ion-buttons>
    </ion-toolbar>
</ion-header>
<ion-content>
    <div class="fix-bar" ion-fixed>
        <div class="fix-bar_left">
            <div class="fix-name" (click)="goToClientDetail()" [class.active-name]="detail.isInPhoneBook || classify===1">{{detail.name}}</div>
            <div class="fix-tel">{{detail.tel}}</div>
        </div>
        <div class="fix-bar_right">
            <i class="fix-add" *ngIf="!detail.isInPhoneBook && classify === 0" (click)="toClientAdd()"></i>
            <div class="phone-wrapper" (click)="callPhone($event)">
                <i class="fix-phone"></i>
            </div>
        </div>
    </div>
    <div class="activity-wrapper">
        <activity-card [classify]="classify" [isOpen]="true" title="进行中的活动"
                       [activities]="detail.activitysInProgress"></activity-card>
        <activity-card [classify]="classify" [isOpen]="false" title="未开始的活动"
                       [activities]="detail.activitysInComing"></activity-card>
        <activity-card [classify]="classify" [isOpen]="false" title="已结束的活动"
                       [activities]="detail.activitysFinished"></activity-card>
    </div>

</ion-content>
